Skip to content

feat(proofs/agda): upstream Echo/CNO bridge files from maa-framework vendored copy#65

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/upstream-echobridge-from-maa
May 27, 2026
Merged

feat(proofs/agda): upstream Echo/CNO bridge files from maa-framework vendored copy#65
hyperpolymath merged 1 commit into
mainfrom
claude/upstream-echobridge-from-maa

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

Upstreams 3 Agda files that exist only in maa-framework's vendored copy of absolute-zero, but self-identify as absolute-zero artefacts.

  • proofs/agda/EchoBridgeScaffold.agda — compile-safe interface (Echo Σ-shape, CNOModel), intentionally independent of CNO.agda.
  • proofs/agda/EchoBridgeCNO.agda — concrete instantiation from CNO.Program / CNO.eval into the scaffold.
  • proofs/agda/README.adoc — describes the directory.

Why now

Discovered during proof-debt classification triage for maa-framework (filed at hyperpolymath/maa-framework#82, with disposition analysis in hyperpolymath/maa-framework#84). The maa-framework re-vendor (hyperpolymath/maa-framework#83) currently uses rsync --filter='P ...' to preserve these files across each sync — once they're upstream, that filter becomes redundant.

The README.adoc literally titles itself "Agda Proofs (absolute-zero)" and the scaffold header says "Echo/CNO Agda bridge scaffold", so the canonical home is here.

Trusted-base impact

The 3-file set has zero postulates and zero axioms. EchoBridgeCNO.agda imports Axiom.Extensionality.Propositional to obtain the Extensionality type, which is then accepted as an explicit module parameter by downstream functions — not postulated. Documented in docs/proof-debt.md under a new "False positives" section to satisfy check-trusted-base.sh's path-enumeration clause.

Test plan

  • cd proofs/agda && agda EchoBridgeScaffold.agda typechecks.
  • cd proofs/agda && agda EchoBridgeCNO.agda typechecks (may need CNO.agda build prerequisites).
  • bash scripts/check-trusted-base.sh . passes (path-enumeration covers the false positive).
  • CI green.

Companion

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

🤖 Generated with Claude Code

…vendored copy

The maa-framework repo carries a vendored copy of absolute-zero with 3
Agda files added directly to proofs/agda/ that were never upstreamed
back to canonical absolute-zero:

- EchoBridgeScaffold.agda — compile-safe interface layer providing
  the `Echo` Σ-shape and `CNOModel` interface, intentionally
  independent of CNO.agda so it stays typecheckable while CNO.agda
  is being completed.
- EchoBridgeCNO.agda — concrete model instantiation from CNO.Program
  and CNO.eval into the scaffold interface. Two bridges: identity via
  CNO.state-eq directly (echo-from-cno-program-rel), and propositional
  equality recovery via Extensionality.
- README.adoc — describes the three-file structure of proofs/agda/.

These files self-identify as absolute-zero artefacts (the README.adoc
title is "Agda Proofs (absolute-zero)" and EchoBridgeScaffold's
comment says "Echo/CNO Agda bridge scaffold"), so canonical home is
here — not in maa-framework. The maa-framework re-vendor in
maa-framework#83 has to use rsync --filter='P ...' to preserve them
across syncs; landing them upstream removes that need.

Discovered while triaging maa-framework's proof-debt classification
(maa-framework#82 / maa-framework#84). The 3-file set has no
postulates; `EchoBridgeCNO.agda` imports `Axiom.Extensionality.Propositional`
as a *type* used as a module parameter (not a postulate). Documented
this false-positive case in docs/proof-debt.md so check-trusted-base.sh
(standards#211) passes without inline annotation.

Refs: maa-framework#82, maa-framework#84, standards#203, standards#211.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath hyperpolymath merged commit 282c204 into main May 27, 2026
9 of 17 checks passed
@hyperpolymath hyperpolymath deleted the claude/upstream-echobridge-from-maa branch May 27, 2026 10:30
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 64 issues detected

Severity Count
🔴 Critical 8
🟠 High 16
🟡 Medium 40

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Ada pragma Suppress disables runtime checks (1 occurrences, CWE-704)",
    "type": "ada_pragma_suppress",
    "file": "/home/runner/work/absolute-zero/absolute-zero/examples/ada/balanced_ops.adb",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (3 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/quantum/QuantumMechanicsExact.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (29 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/quantum/QuantumCNO.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (2 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/lambda/LambdaCNO.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (1 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/category/CNOCategory.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (13 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/filesystem/FilesystemCNO.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (14 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/physics/LandauerDerivation.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "User-defined Coq axiom -- not verified by kernel (10 occurrences, CWE-704)",
    "type": "coq_axiom",
    "file": "/home/runner/work/absolute-zero/absolute-zero/proofs/coq/physics/StatMech.v",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "undefined/error causes runtime crash (2 occurrences, CWE-754)",
    "type": "undefined_error",
    "file": "/home/runner/work/absolute-zero/absolute-zero/examples/haskell/Nop.hs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "believe_me undermines formal verification (7 occurrences, CWE-704)",
    "type": "believe_me",
    "file": "/home/runner/work/absolute-zero/absolute-zero/src/abi/Proofs/DivMod.idr",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "critical"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant